package org.project.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.project.service.mq.JMSSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("hello")
@Controller
public class HelloController extends BaseController {
	

	@Autowired
	private JMSSender jmsSender;
	/** 列表 **/
	@RequestMapping("/list")
	public String list(Integer pageNo, Integer pageSize,
			HttpServletRequest req, HttpServletResponse resp, ModelMap model) {

		return "hello/list";
	}

	/** 列表 **/
	@RequestMapping("/sendMsg")
	public String listMsg() {
		
		jmsSender.sendMesage("abcdefg");
		return "hello/list";
	}
	

}
